////////////////////////////////////////////////////////
//  constructor of VideoCenter
VideoCenter = function () {
    this.videoPlayer = null;
    this.subTitleBar = null;
    this.subTitleDecoder = null;
};
//  methods of VideoCenter
VideoCenter.prototype = {
    init: function (videoPlayer,subTitleBar) {
        this.videoPlayer = videoPlayer;
        this.subTitleBar = subTitleBar;

        this.videoPlayer.registerVideoCenter(this);
        this.subTitleBar.registerVideoCenter(this);
    },
    onSubTitleChanged: function (time) {
        this.subTitleBar.scroll(time);
    },
    onSeekEvent: function (time) {
        this.videoPlayer.seek(time);
    }
};